Refraction of a ray of light through rectangular glass slab